from django.conf.urls import url,include

from apps.users import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [

    url(r'^login/$', views.LoginView.as_view(), name='login'),  # 登录
    url(r'^reg/$', views.RegisterView.as_view(), name='register'),  # 注册
    url(r'^logout/$', views.LogoutView.as_view(), name='logout'),  # 退出登录
    url(r'^my_center/$', views.MyCenterView.as_view(), name='my_center'),  # 用户中心
    url(r'^my_mygrxx/', views.My_mygrxx.as_view(), name='my_mygrxx'),  # 用户修改详情页
    url(r'^password/$', views.PasswordView.as_view(), name='password'),  # 修改密码
    url(r'^address/$', views.AddressView.as_view(), name='address'),  # 修改地址
    url(r'^myorderq/(?P<page_num>\d+)/$', views.My_orderq.as_view(), name='myorderq'),
    url(r'^cart/$', views.My_Cart_View.as_view(), name='my_cart'),  # 购物车
    url(r'^del_address/$', views.del_address.as_view(), name='del_address'),  # 删除地址
    url(r'^modify_password/$', views.Modify_Password_View.as_view(), name='modify_password'),
    url(r'^pc-geetest/register', views.pcgetcaptcha, name='pcgetcaptcha'),  # 极验验证
    url(r'^myprod/$', views.OrderCommentView.as_view(), name='order_comment'),  # 我的订单
    url(r'^orderxq/$', views.OrderDetail_View.as_view(), name='order_detail'),  # 订单详情
]
